public class Nmue {
public static void num(int n){
    if (n<10){
        System.out.print(n+" ");

    }
    else {
        num(n/10) ;
        System.out.println(n%10+" ");

    }
    }
}
